package com.x.client.utils

import android.content.Context
import android.widget.ImageView
import com.gg.image.config.GlideApp
import com.x.client.R
import com.youth.banner.loader.ImageLoader

/**
 * Creator : GG
 * Time    : 2017/11/23
 * Mail    : gg.jin.yu@gmail.com
 * Explain :
 */
class RotationImageLoader : ImageLoader() {
    override fun displayImage(context: Context, path: Any, imageView: ImageView) {
//        GlideApp.with(context).load(App.instance.getImageUrl() + (path as Rotation).rotationImage + ".r_1200xh_800").placeholder(R.drawable.ic_car_placeholder).into(imageView)
        GlideApp.with(context).load(path).placeholder(R.drawable.ic_placeholder).into(imageView)
    }
}